import Vue from 'vue'
import VueX from 'vuex'
Vue.use(VueX)
// // 存数据的地方
// const state={};
// // 修改state的唯一手段
// const mutations = {};
// // 书写自己的业务逻辑
// const actions = {};
// // 计算属性，简化仓库数据
// const getters = {};
// 引入小仓库
import home from './home'
import search from './search'
import detail from './detail'
import shopcart from './shopcart'
import user from './user'
import trade from './trade'
export default new VueX.Store({
    // state,
    // mutations,
    // actions,
    // getters
    modules:{
        home,
        search,
        detail,
        shopcart,
        user,
        trade,
    }
})